package com.zzx.boot.entity.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

/**
 * @author tan
 * @version 1.0
 * @date 2023/7/7 20:56
 */
@Data
public class PhoneLoginDto {

    @Pattern(regexp="^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$",message = "手机号不正确")
    private String phone;// 手机号
    @Length(min = 4,max = 4,message = "验证码不正确")
    private String code;    // 验证码



}
